export default {
	SET_LOGGED (state, { token, user })
	{
		state.logged = true;
		state.user   = user;
	},
	SET_LOGOUT (state)
	{
		state.logged = false;
		state.user   = null;
	},
	CITIES_CACHE (state, data)
	{
		state.cities = data;
	},
	SET_UID (state, uid)
	{
		state.uid = uid;
	},

	SET_SKUID(state, data)
	{
		state.sku_id = data; 
	},

	SET_ADDRESSID(state, data)
	{
		state.address_id = data;
	},
	SET_GOODSID(state, data)
	{
		state.goods_id = data;
	},
	SET_CLASSID(state, data)
	{
		state.class_id = data;
	},
	SET_ADDRESS(state, data)
	{
		state.address = data;
	},
	SET_COMMODITY(state, data)
	{
		state.commodity_data = data;
	},
	SET_SELECTADD(state, data)
	{
		state.select_address_data = data;
	},
	SET_PAYADDRESS(state,data)
	{
		state.pay_address_data = data;
	}
}
